package com.xiang.sql.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 收货地址 数据实体
 * 
 * @author mac-xiang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`addr`", autoResultMap = true)
@ApiModel(value = "收货地址 对象", description = "收货地址")
public class Addr implements Serializable {

  private static final long serialVersionUID = 1L;
  /** 主键ID */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  public String id;

  /** 创建时间 */
  @TableField(value = "`create_time`", fill = FieldFill.INSERT)
  public Long createTime;

  /** 创建者 */
  @TableField(value = "`create`", fill = FieldFill.INSERT)
  public String create;

  /** 默认地址 */
  @TableField(value = "`def`")
  public Integer def;

  /** 名称 */
  @TableField(value = "`name`", fill = FieldFill.INSERT)
  public String name;

  /** 地址 */
  @TableField(value = "`addr`", fill = FieldFill.INSERT)
  public String addr;

  /** 联系电话 */
  @TableField(value = "`phone`", fill = FieldFill.INSERT)
  public String phone;

  public Addr() {
  }
}